package com.baitiaojun.user.mapper;


import com.baitiaojun.api.domain.user.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface UserInfoMapper {
    int deleteByPrimaryKey(@Param("id") Long id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(@Param("id") Long id);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKeyWithBLOBs(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    UserInfo selectByUserId(@Param("userId") Long userId);

    List<UserInfo> selectUserInfoListByUserIds(@Param("userIds") Set<Long> userIds);

    UserInfo selectUserInfoByUserId(@Param("userId") Long userId);

    Long selectUserIdById(Long followingId);

    Set<Long> selectUserIdsFollowingIds(@Param("followingIds") Set<Long> followingIds);
}